<?php

/**
 * xmlrpc
 * 
 * @author ShuangYa
 * @package Blog
 * @category Controller
 * @link http://www.sylingd.com/
 * @copyright Copyright (c) 2015 ShuangYa
 * @license http://lab.sylingd.com/go.php?name=blog&type=license
 */

namespace blog\controller;

use \sy\base\Controller;
use \blog\libs\BHtml;
use \blog\libs\option;

class Xmlrpc extends Controller {
	public function __construct() {
		if (!class_exists('IXR_Server', FALSE)) {
			require(Sy::$appDir . 'third_party/IXR_Library.php');
		}
	}
	public function actionWlw() {
		Sy::setMimeType('xml');
		echo file_get_contents(Sy::$appDir . 'data/xmlrpc/wlw.xml');
	}
	public function actionRsd() {
		Sy::setMimeType('xml');
		$homeUrl = Sy::createUrl();
		$wpXmlrpcUrl = Sy::createUrl('xmlrpc/wp');
		include(Sy::$appDir . 'data/xmlrpc/rsd.php');
	}
	
}